home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gnome-games / aisleriot / games / spider_three_decks.scm < prev    next >
Encoding:
Text File  |  2009-04-14  |  3.0 KB  |  89 lines

  1. ; AisleRiot - spider_three_decks.scm
  2. ; Copyright (C) 2005 Daniel Werner <dw@dur.ch>
  3. ;
  4. ; This game is free software; you can redistribute it and/or modify
  5. ; it under the terms of the GNU General Public License as published by
  6. ; the Free Software Foundation; either version 2, or (at your option)
  7. ; any later version.
  8. ;
  9. ; This program is distributed in the hope that it will be useful,
  10. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ; GNU General Public License for more details.
  13. ;
  14. ; You should have received a copy of the GNU General Public License
  15. ; along with this program; if not, write to the Free Software
  16. ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  17. ; USA
  18.  
  19. (load "spider.scm")
  20.  
  21. (define tableau '(13 14 15 16 17 18 19 20 21 22 23 24))
  22. (define foundation '(1 2 3 4 5 6 7 8 9 10 11 12))
  23. (define initial-deal '(13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18))
  24. (define winning-score 144)
  25. (define stock 0)
  26.  
  27. (define allow-empty-slots #t)
  28.  
  29. (define (make-standard-triple-deck)
  30.   (if (= ace 14)
  31.      (set! DECK (append (make-standard-deck-list-ace-high 2 club) (make-standard-deck-list-ace-high 2 club) (make-standard-deck-list-ace-high 2 club)))
  32.      (set! DECK (append (make-standard-deck-list-ace-low ace club) (make-standard-deck-list-ace-low ace club) (make-standard-deck-list-ace-low ace club))))
  33.   )
  34.  
  35. (define (new-game)
  36.   (initialize-playing-area)
  37.   (make-standard-triple-deck)
  38.   (shuffle-deck)
  39.  
  40.   ;set up the board
  41.   (add-normal-slot DECK)
  42.   (add-normal-slot '())
  43.   (set! HORIZPOS (- HORIZPOS 0.09))
  44.   (add-normal-slot '())
  45.   (set! HORIZPOS (- HORIZPOS 0.09))
  46.   (add-normal-slot '())
  47.   (set! HORIZPOS (- HORIZPOS 0.09))
  48.   (add-normal-slot '())
  49.   (set! HORIZPOS (- HORIZPOS 0.09))
  50.   (add-normal-slot '())
  51.   (set! HORIZPOS (- HORIZPOS 0.09))
  52.   (add-normal-slot '())
  53.   (set! HORIZPOS (- HORIZPOS 0.09))
  54.   (add-normal-slot '())
  55.   (set! HORIZPOS (- HORIZPOS 0.09))
  56.   (add-normal-slot '())
  57.   (set! HORIZPOS (- HORIZPOS 0.09))
  58.   (add-normal-slot '())
  59.   (set! HORIZPOS (- HORIZPOS 0.09))
  60.   (add-normal-slot '())
  61.   (set! HORIZPOS (- HORIZPOS 0.09))
  62.   (add-normal-slot '())
  63.   (set! HORIZPOS (- HORIZPOS 0.09))
  64.   (add-normal-slot '())
  65.   (add-carriage-return-slot)
  66.   (add-extended-slot '() down)
  67.   (add-extended-slot '() down)
  68.   (add-extended-slot '() down)
  69.   (add-extended-slot '() down)
  70.   (add-extended-slot '() down)
  71.   (add-extended-slot '() down)
  72.   (add-extended-slot '() down)
  73.   (add-extended-slot '() down)
  74.   (add-extended-slot '() down)
  75.   (add-extended-slot '() down)
  76.   (add-extended-slot '() down)
  77.   (add-extended-slot '() down)
  78.   (deal-initial-setup)
  79.  
  80.   (give-status-message)
  81.  
  82.   (list 12 6))
  83.  
  84. (define (get-options) #f)
  85.  
  86. (define (apply-options options) #f)
  87.  
  88. (set-lambda new-game button-pressed button-released button-clicked button-double-clicked game-over game-won get-hint get-options apply-options timeout droppable?)
  89.